//
//  UIView+ShowInView.h
//  acfun_video
//
//  Created by user on 11/25/15.
//  Copyright © 2015 wang. All rights reserved.
//

#import <UIKit/UIKit.h>
///TODO:Animation
@interface UIView (ShowInView)

@property (nonatomic, copy)     dispatch_block_t        didDismissFromContainerBlock;

///designated method
///呈现
- (void)showInContainerView:(UIView *)containerView maskView:(UIView *)maskView maskFrame:(CGRect)maskFrame targetFrame:(CGRect)targetFrame;
- (void)showInContainerView:(UIView *)containerView targetTop:(CGFloat)targetTop;

///隐藏
- (void)dismissFromContainer;

///是否正在显示
- (BOOL)isShowing;

@end
